Tsg3DNavigator
Unit:sg3DNavigator
Description
The Tsg3DNavigator
class descends from the TGLSceneViewer
component that is a part of GLScene library.
Syntax
Tsg3DNavigator = class(TGLSceneViewer)
Properties
Properties | Description |
---|---|
Axes | The property gets the scene's coordinate axes. |
BackgroundColor | The property gets or sets the color used for filling the background prior to any rendering. |
BoundingSphereRadius | The property gets the radius of the bounding sphere. |
CameraStyle | The property gets or sets a camera view. |
DefSceneMatrix | The property gets the default scene's transformation matrix. |
Filter | The property gets the file extension filter suitable for dialog's Filter property. |
GLDCScene | The property gets the main object in the scene. |
GLDCTarget | The property gets the target for the camera. |
GLFreeForm | The property gets the container object for the mesh of varying 3D formats. |
Lights | The property gets the light source that lights scene objects by its index. |
LightsCount | The property gets the number of light sources. |
Orbit3DVisible | The property gets or sets the value indicating whether 3D Orbit is visible. |
ShowAxis | The property gets or sets the value indicating whether coordinate axes are visible. |
ShowCubeExtents | The property gets or sets the value indicating whether extents of the loaded scene are shown as a cube. |
TrianglesCount | The property gets a total number of triangles in all mesh objects. |
Methods
Methods | Description |
---|---|
Clear | The method frees the scene objects and clears the materials collection. |
Create | Creates and initializes an instance of the Tsg3DNavigator class. |
Destroy | Destroys the Tsg3DNavigator object. |
DoAfterLoadScene | The method initializes scene parameters. |
IsEmpty | The method checks whether the scene is empty (i.e. doesn't contain meshes). |
LoadFromFile | The method loads 3D model from a specified file. |
LoadFromStream | The method loads 3D model from a specified stream. |
LoadSceneIdentity | The method sets a single scale and the identity matrix as a scene's matrix. |
Rotate | The method rotates the scene objects around a specific axis by a predetermined angle. |
SetDefSceneMatrix | The method sets the scene's transformation matrix by default. |
Translate | The method adds an offset to the scene's position by using translation vector. |
Events
Events | Description |
---|---|
OnScenePositionChange | The event occurs when the position of the scene changes. |